package com.mrzhou.common.feign.fallback;

import com.mrzhou.common.feign.client.ISystemClient;
import com.mrzhou.core.tool.api.R;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public class SystemClientFallback implements ISystemClient {

    private R result;

    public SystemClientFallback(String message) {
        result = R.fail(message);
    }

    @Override
    public R<List<String>> getRoleAlias(String roleIds) {
        return result;
    }

    @Override
    public R<List<String>> getRolePerms(String roleIds) {
        return result;
    }

    @Override
    public Boolean tempBoolean() {
        return false;
    }
}
